//
//  ZLAVConfig.m
//  Video
//
//  Created by os on 2021/3/29.
//

#import "ZLAVConfig.h"

@implementation ZLAVConfig

+ (instancetype)defaultConfig {
    return [self init];
}

@end

@implementation ZLAudioConfig

+ (instancetype)defaultConfig {
    return [[ZLAudioConfig alloc] init];
}

- (instancetype)init {
    if (self = [super init]) {
        self.bitrate = 96000;
        self.channelCount = 1;
        self.sampleSize = 16;
        self.sampleRate = 48000;
    }
    return self;
}

@end

@implementation ZLVideoConfig

+ (instancetype)defaultConfig {
    return [[ZLVideoConfig alloc] init];
}

- (instancetype)init {
    if (self = [super init]) {
        self.bitrate = 640*1000;
        self.width = 480;
        self.height = 640;
        self.fps = 25;
    }
    return self;
}

@end
